import request from '@/utils/request'
import qs from "querystring"
export default{
    //查询全部
    getFindTimeList(){
        return request({
            url:"/api-operate/seckill/time/getFindTime",
            method:"get"
        })
    },

    //查询全部2
    getFindTimeTwoList(){
        return request({
            url:"/api-operate/seckill/time/getFindTimeTwo",
            method:"get"
        })
    },

    //编辑修改
    getUpdateList(dto){
        var data=qs.stringify(dto)
        return request({
            url:"/api-operate/seckill/time/getSeckillUpdate",
            method:"put",
            data
        })
    },

    //添加保存
    getSaveList(dto){
        var data=qs.stringify(dto)
        return request({
            url:"/api-operate/seckill/time/getSaveTime",
            method:"post",
            data
        })
    },

    //软删除
    getDeletesList(id){
        var data=qs.stringify({id})
        return request({
            url:"/api-operate/seckill/time/deleteTime",
            method:"delete",
            data
        })
    }
}